//
//  APUserPageWorksViewCell.m
//  AqualPolo
//
//  Created by dong on 2024/5/12.
//

#import "APUserPageWorksViewCell.h"

@implementation APUserPageWorksViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _upvoteButton = [UIButton buttonWithType:UIButtonTypeCustom];
        [_upvoteButton setBackgroundImage:[UIImage imageNamed:@"upvote_blue_rect_n"] forState:UIControlStateNormal];
        [_upvoteButton setBackgroundImage:[UIImage imageNamed:@"upvote_blue_rect_h"] forState:UIControlStateSelected];
        [self.contentView addSubview:_upvoteButton];
        [_upvoteButton mas_makeConstraints:^(MASConstraintMaker *make) {
            make.right.equalTo(self.contentView).offset(-8);
            make.centerY.equalTo(self.avatarImageView.mas_centerY);
            make.size.mas_equalTo(CGSizeMake(24, 24));
        }];
        [self.topButton setBackgroundImage:[UIImage imageNamed:@"user_page_more"] forState:UIControlStateNormal];
    }
    return self;
}
@end
